<?php
function smarty_modifier_discount($string, $discount = '0')
{
	return $string - $string*$discount/100;
}

?> 